package com.wyd.resourcetj.service;

import java.util.List;

import javax.transaction.Transactional;

import com.wyd.resourcetj.model.Adminstrator;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;


/**
 * IAdminstratorService
 */
public interface IAdminstratorService  extends Repository<Adminstrator, Integer>, JpaRepository<Adminstrator, Integer>{

    
    @Modifying
    @Transactional
    @Query("delete from Adminstrator a where a.id in (?1)")
    void deleteMoreAdminstrator(List<Integer> ids);
}